var user = getUserInfo();

if(!user){
    window.confirm("没有登录, 不允许进来");
}

var vue = new Vue({
    el:"#app",
    data:{
        owner:{},
        visitors:[
            {id:"5f40d79c1e480000ae007de2", nickname:"lyf", headImgUrl: "/images/test/personal/lyf.jpg"},
            {id:"5f1c1a1e43190000f60034c3", nickname:"qsz", headImgUrl: "/images/test/personal/qsz.jpg"},
            {id:"5f1c1a1e43190000f60034c4", nickname:"zhy", headImgUrl: "/images/test/personal/zhy.jpg"}
            ],
      /*  totalView:"",
        todayView:"",*/
        vo:{}
    },
    methods:{

    },
    filters:{

    },
    mounted:function () {
        var param = getParams();
        /*param.id = "5f2f45096b252132a63003cb";*/
        var ownerId = param.ownerId; //窝的拥有者id


        //获取统计数据
        ajaxGet("/visitors/vo", {id:ownerId}, function (data) {
            vue.vo = data.data;

        })

    }
});

